﻿@font-face {
    font-family: 'vazir';
    src: url('../fonts/vazir.eot') format('eot'),
     url('../fonts/vazir.ttf') format('truetype'),
    url('../fonts/vazir.woff') format('woff'),
    url('../fonts/vazir.woff2') format('woff2');
}
*{
    padding: 0;
    margin: 0;
}
body{
    font-family: 'vazir';
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image:url("../img/gis.jpg");
    background-size: cover;
    
}


.container{
    height: 250px;
    width: 250px;
    background: linear-gradient(45deg, #e01a00, #ae31d9);
    box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.3);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    overflow: hidden;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    position: relative;
}

.container:hover{
    height: 470px;
    width: 350px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.container .wrapper img{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border: 5px solid #fff;
    display: block;
    margin: 20px auto;
    object-fit: cover;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}
.container:hover .wrapper img.active{
    width: 350px;
    height: 470px;
    border: none;
    margin: 0 auto;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.wrapper .title{
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.wrapper .place{
    color: #e0e0e0;
    font-size: 17px;
    margin: 10px 0;
    text-align: center;
}


.content{
    color: #e0e0e0;
    font-size: 17px;
    margin: 20px 0;
    text-align: center;
}

.content .button{
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.content .button .btn{
    width: 150px;
    height: 40px;
    margin: 0 5px;
}

.content .button .btn button{
    width: 100%;
    height: 100%;
    font-family: 'vazir';
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 17px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

.content .button .btn button:hover{
    transform: scale(.95);
    -webkit-transform: scale(.95);
    -moz-transform: scale(.95);
    -ms-transform: scale(.95);
    -o-transform: scale(.95);
}


.icon{
   position: absolute;
   top: 0;
   right: 10px;
   display: flex;
   flex-direction: column; 
}

.icon.active{
    display: none;
}
.icon li{
    width: 40px;
    height: 40px;
    text-align: center;
    margin: 5px 0;
    opacity: 0;
    transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
   
}

.container:hover .icon li{
    opacity: 1;
}

.container:hover .icon li:nth-child(2){
    transition-delay: .2s;
}

.container:hover .icon li:nth-child(3){
    transition-delay: .4s;
}

.icon li a{
    color: #7b00e0;
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-border-radius: 50;
    -moz-border-radius: 50;
    -ms-border-radius: 50;
    -o-border-radius: 50;
}
.hidden {
    visibility: hidden;
}

.alert-box {
    position: absolute;
    top: 50px;
    right: 0;
    width: 270px;
    padding: 20px 30px;
    background: green;
    color: #fff;
    font-size: 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-box .close-btn {
    cursor: pointer;
}


.alert-box.hide {
    animation: hideAlert 1s ease forwards;
    -webkit-animation: hideAlert 1s ease forwards;
}


@keyframes hideAlert {
    0% {
        transform: translateX(-5%);
        -webkit-transform: translateX(-5%);
        -moz-transform: translateX(-5%);
        -ms-transform: translateX(-5%);
        -o-transform: translateX(-5%);
}

    40% {
        transform: translateX(-0%);
        -webkit-transform: translateX(-0%);
        -moz-transform: translateX(-0%);
        -ms-transform: translateX(-0%);
        -o-transform: translateX(-0%);
}

    80% {
        transform: translateX(-15%);
        -webkit-transform: translateX(-15%);
        -moz-transform: translateX(-15%);
        -ms-transform: translateX(-15%);
        -o-transform: translateX(-15%);
}

    100% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
}
}



.alert-box.show {
    animation: showAlert 1s ease forwards;
    -webkit-animation: showAlert 1s ease forwards;
}

@keyframes showAlert {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
    }

    40% {
        transform: translateX(-15%);
        -webkit-transform: translateX(-15%);
        -moz-transform: translateX(-15%);
        -ms-transform: translateX(-15%);
        -o-transform: translateX(-15%);
    }

    80% {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
    }

    100% {
        transform: translateX(-5%);
        -webkit-transform: translateX(-5%);
        -moz-transform: translateX(-5%);
        -ms-transform: translateX(-5%);
        -o-transform: translateX(-5%);
    }
}


.alert-box.show::before{
    content: '';
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: #32ac32;
    bottom: 0;
    left: 0;
    animation: hideMaster 5s linear;
    -webkit-animation: hideMaster 5s linear;
}

@keyframes hideMaster{
    0%{
        width: 100%;
    }
    100%{
        width: 0;
    }
}